export const useCountStore = defineStore('counter', () => {
  const count = ref(0)
  const addCount = () => {
    count.value++
  }
	const minusCount = () => {
	  count.value--
	}
  return {
    count,
    addCount,
		minusCount
  }
}, {
  persist: false,
})
export const useSessionStore = defineStore('session', () => {
  const sessionId = ref(null)
  const setSessionId = id => {
    sessionId.value = id
  }
  return {
    sessionId,
    setSessionId
  }
}, {
  persist: 'sessionStorage',
})
export const useParamsStore = defineStore('params', () => {
  const params = ref({})
  const setParams = (json) => {
		params.value = Object.assign(params.value, json)
  }
  return {
    params,
    setParams
  }
}, {
  persist: 'sessionStorage',
})